<section id="page-title"><div class="row" ><div class="col-sm-8"><h1 class="mainTitle">交接班</h1><span class="mainDescription">交接班,查看交接班</span></div></div></section>

<div ng-controller="shiftScheduleCtrl" >
	<div class="col email-list " style="width:600px;height:500px;">
		<div class="wrap-list">
			<ul class="messages-list" style="width:80%;top: 100px;" perfect-scrollbar wheel-propagation="true" suppress-scroll-x="true">
				<li ng-if="!shiftes.length">
					<div class="">
						暂时没有交接班
					</div>
				</li>
				<li>
					<div class="row">
						<div class="col-md-12">
							<table class="table table-bordered">
								<thead>
									<tr>
										<th>第一值班人交班情况</th>
										<th>第二值班人交班情况</th>
										<th>第一接班人接班情况</th>
										<th>第二接班人接班情况</th>								
									</tr>
								</thead>
								<tbody>
									<tr>
										<td ng-repeat="shift in shiftes">值班人: {{ shift.user.name }}</td>
									</tr>
									<tr>
										<td ng-repeat="shift in shiftes"><span ng-if="getShiftType(shift)=='import'">接班状态</span><span ng-if="getShiftType(shift)=='upload'">交班状态</span>: {{ shift.status.description }}</td>
									</tr>
									<tr class="success">
										<td ng-repeat="shift in shiftes"><span ng-if="getShiftType(shift)=='import'">接班时间 : {{ shift.succeedTime}}</span><span ng-if="getShiftType(shift)=='upload'">交班时间 : {{ shift.shiftTime }}</span>   </td>
									</tr>
									<tr class="info">
										<td ng-repeat="shift in shiftes">班次: {{ shift.scheduleOrderDTO.description }}</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					<div class="row">
						<div class="col-md-12">
							<button ng-click="importShift()" ng-if="getHandle()=='import'"><i class="ti-import"/>接班</button>
							<button ng-click="uploadShift()" ng-if="getHandle()=='upload'"><i class="ti-upload"/>交班</button>
							<div ng-if="getHandle()=='uploadDes'">未全部交班</div>
						</div>
					</div>
					<!-- <a message-item="{{message.id}}">
						<img ng-src="assets/images/avatar-{{message.user['gender']=='男'?'1':'2'}}.jpg" class="messages-item-avatar bordered border-primary"/>
						<span class="messages-item-from">{{ shift.user.name }}</span>
						<span class="messages-item-from">{{ shift.status.name }}</span>
						<div class="messages-item-time">
							<span class="text">开始时间：{{ shift.scheduleOrderDTO.startTime }}</span>
							<span class="text">结束时间：{{ shift.scheduleOrderDTO.endTime }}</span>
							<button ng-click="importShift(shift)" ng-if="getHandle(shift)=='import'"><i class="ti-import"/>接班</button>
							<button ng-click="uploadShift(shift)" ng-if="getHandle(shift)=='upload'"><i class="ti-upload"/>交班</button>
						</div>
						<span class="messages-item-subject"> <em class="spam" ng-if="message.spam">[SPAM] </em> {{ shift.description }}</span>
					</a> -->
				</li>
			</ul>
		</div>
	</div>
</div>